package com.es.system;

import javax.servlet.http.HttpServletRequest;

import com.opensymphony.webwork.interceptor.ServletRequestAware;
import com.opensymphony.xwork.ActionSupport;

public class DeleteEmpRoleDoAction  extends ActionSupport implements ServletRequestAware{

	private static final long serialVersionUID = 1L;
	HttpServletRequest request;
	 
	   public String execute()throws Exception
	   {
		   String emp_id = request.getParameter("emp_id");		   
		   SysBiz biz = new SysBiz();
		   boolean bool = biz.deleteEmpLogin(emp_id);
		   if(bool)
			   request.setAttribute("message", "取消用户登录操作成功！");
		   else
			   request.setAttribute("message", "取消用户登录操作失败！");
		   return "success";
	   }
	
	   public void setServletRequest(HttpServletRequest request) {
		     this.request = request;
		   }
}
